<?php

namespace App\Modules\Admin\Entities\Expenses;

use App\Models\Model;
use App\Modules\Admin\Entities\Water\WaterDeviceModel;

class MasterReadModel extends Model
{
    protected $table='master_read';
    protected $primaryKey='read_id';

    public function master_info(){
        return $this->hasOne(MasterModel::class,'master_id','master_id');
    }
    public function water_device_info(){
        return $this->hasOne(WaterDeviceModel::class,'water_id','water_id')->select(['water_id','water_title']);
    }
}
